/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ipti.br.tag.bean;

import org.ipti.br.tag.bo.WarningBO;
import org.ipti.br.tag.entity.Warning;
import org.ipti.br.tag.entity.enums.WarningType;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.inject.Named;

/**
 *
 * @author luancorumba
 */
@Named(value = "warningMB")
@RequestScoped
public class WarningMB {

    @Inject
    private WarningBO warningBO;
    
    public WarningMB() {
        
    }
    
    @PostConstruct
    public void load() {
        
    }
    
    public List<Warning> getRoots() {
//        return warningBO.findRoots();
        return new ArrayList<Warning>();
    }
    
    public List<Warning> getRoots(WarningType warningType) {
//        return warningBO.findRoots(warningType);
        return new ArrayList<Warning>();
    }
    
    public List<Warning> getLeafs() {
//        return warningBO.findLeafs(WarningType.ANEMIC_WITHOUT_MEASURE);
        return new ArrayList<Warning>();
    }
    
    public WarningType getAnemic() {
        return WarningType.ANEMIC_WITHOUT_MEASURE;
    }
}
